﻿<Window x:Class="Studio.DocumentDB.Dialogs.NewDocumentWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Studio.DocumentDB"
        Title="New Document" Height="400" Width="600">
    <Window.Resources>
        <Style TargetType="Button">
            <Setter Property="MinWidth" Value="80"/>
        </Style>
    </Window.Resources>
    <DockPanel LastChildFill="True" FocusManager.FocusedElement="{Binding ElementName=docText}">
        <DockPanel DockPanel.Dock="Bottom" LastChildFill="False" Margin="20">
            <Button Name="okButton" DockPanel.Dock="Left" IsDefault="True" Click="Ok_Click">OK</Button>
            <Button DockPanel.Dock="Right" IsCancel="True">Cancel</Button>
        </DockPanel>
        <TextBox
            Name="docText"
            Text="{Binding DocumentContent}"
            TextChanged="docText_TextChanged"
            Margin="10"
            DockPanel.Dock="Bottom"
            AcceptsReturn="True"
            AcceptsTab="True" />
    </DockPanel>
</Window>
